﻿<UserControl x:Class="Controls.CueList"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:cueHelp="clr-namespace:Q2Q.Cues.Helpers"
			 xmlns:cue="clr-namespace:Q2Q.Cues"
			 xmlns:my="clr-namespace:Q2Q.UI"
			 xmlns:ctrl="clr-namespace:Q2Q.Controls"
			 xmlns:q="clr-namespace:Q2Q"
			 xmlns:col="clr-namespace:Q2Q.Collections"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" x:Name="CueListControl" Background="{DynamicResource ShowLayoutBackground}">
	<UserControl.CommandBindings>
		<!--<CommandBinding Command="q:Commands.AddAudioCue" Executed="ExecuteAddAudioCue" CanExecute="CanExecuteEditing" />
		<CommandBinding Command="q:Commands.BulkAddAudioCues" Executed="ExecuteBulkAddAudioCues" CanExecute="CanExecuteEditing" />
		<CommandBinding Command="q:Commands.AddTransportCue" Executed="ExecuteAddTransportCue" CanExecute="CanExecuteEditing" />
		<CommandBinding Command="q:Commands.AddStackCue" Executed="ExecuteAddStackCue" CanExecute="CanExecuteEditing" />-->

        <!--<CommandBinding Command="q:Commands.DeleteCue" Executed="ExecuteDeleteCue" CanExecute="CanExecuteWithAtLeastOneSelected"/>--><!-- />PreviewExecuted="ExecuteDeleteCue"-->
        <!--<CommandBinding Command="ApplicationCommands.Paste" Executed="ExecutePasteCue" CanExecute="CanExecuteWithAtLeastOneSelectedPaste" />-->
		<!--<CommandBinding Command="q:Commands.BumpStatus" Executed="ExecuteBumpStatus" CanExecute="CanExecuteWithAtLeastOneSelected" />-->

		<!--<CommandBinding Command="q:Commands.ChangeCueNumber" Executed="ExecuteChangeCueNumber" CanExecute="CanExecuteWithOnlyOneSelected" />-->
		<!--<CommandBinding Command="ApplicationCommands.Copy" Executed="ExecuteCopyCue" CanExecute="CanExecuteWithOnlyOneSelected" />-->

		<!--<CommandBinding Command="q:Commands.MultiChannelSettings" Executed="ExecuteMultiChannelSettings" CanExecute="CanExecuteMultiChannelSettings" />-->

		<!--<CommandBinding Command="q:Commands.LoopCue" Executed="ExecuteLoopCue" CanExecute="CanExecuteEditing" />
		<CommandBinding Command="q:Commands.CenterPan" Executed="ExecuteCenterPan" CanExecute="CanExecuteEditing" />
		<CommandBinding Command="q:Commands.LoadAudioFile" Executed="ExecuteLoadAudioFile" CanExecute="CanExecuteEditing" />
		<CommandBinding Command="q:Commands.ToggleStackCueList" Executed="ExecuteToggleStackCueList" />
		<CommandBinding Command="q:Commands.HardStop" Executed="ExecuteHardStop" />
		<CommandBinding Command="MediaCommands.Play" Executed="ExecutePlay" />
		<CommandBinding Command="MediaCommands.Pause" Executed="ExecutePause" />
		<CommandBinding Command="MediaCommands.Stop" Executed="ExecuteStop" />-->
	</UserControl.CommandBindings>
	<UserControl.Resources>
		<cueHelp:CueTypeTemplateSelector x:Key="TypeSelect" />
	</UserControl.Resources>
	<ListView x:Name="Cues" Background="{Binding Background, ElementName=CueListControl}" BorderThickness="0" DataContext="{Binding DataContext, ElementName=CueListControl}" ItemsSource="{Binding CueListing, ElementName=CueListControl}" ItemTemplateSelector="{StaticResource TypeSelect}" IsTextSearchEnabled="False" VirtualizingPanel.CacheLength="10" VirtualizingPanel.CacheLengthUnit="Page" VirtualizingPanel.ScrollUnit="Pixel" VirtualizingPanel.VirtualizationMode="Recycling">
		<ListView.ContextMenu>
			<ContextMenu>
                <ContextMenu.CommandBindings>
                    <CommandBinding Command="q:Commands.AddAudioCue" Executed="ExecuteAddAudioCue" CanExecute="CanExecuteEditing" />
                    <CommandBinding Command="q:Commands.BulkAddAudioCues" Executed="ExecuteBulkAddAudioCues" CanExecute="CanExecuteEditing" />
                    <CommandBinding Command="q:Commands.AddTransportCue" Executed="ExecuteAddTransportCue" CanExecute="CanExecuteEditing" />
                    <CommandBinding Command="q:Commands.AddStackCue" Executed="ExecuteAddStackCue" CanExecute="CanExecuteEditing" />
                </ContextMenu.CommandBindings>
				<MenuItem Command="q:Commands.AddAudioCue" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Sound.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Command="q:Commands.BulkAddAudioCues" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/BulkAudio.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Command="q:Commands.AddTransportCue" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Stop.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Command="q:Commands.AddStackCue" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Stack.png" />
					</MenuItem.Icon>
				</MenuItem>
			</ContextMenu>
		</ListView.ContextMenu>
		<ListView.Resources>
			<Style TargetType="{x:Type Button}" BasedOn="{StaticResource CustomButton1}" />
			<Style x:Key="TextBlockStyle" TargetType="TextBlock">
				<Setter Property="FontSize" Value="{Binding DefaultCueFontSize, ElementName=CueListControl}" />
				<Setter Property="VerticalAlignment" Value="Center" />
				<Setter Property="HorizontalAlignment" Value="Stretch" />
				<Setter Property="Margin" Value="4,0" />
				<Setter Property="TextAlignment" Value="Center" />
				<Setter Property="Foreground" Value="{DynamicResource TextForeground2}" />
			</Style>
			<ContextMenu x:Key="AudioCueContextMenu">
                <ContextMenu.CommandBindings>
                    <CommandBinding Command="ApplicationCommands.Copy" Executed="ExecuteCopyCue" CanExecute="CanExecuteWithOnlyOneSelected" />
                    <CommandBinding Command="ApplicationCommands.Paste" Executed="ExecutePasteCue" CanExecute="CanExecuteWithAtLeastOneSelectedPaste" />
                    <CommandBinding Command="q:Commands.ChangeCueNumber" Executed="ExecuteChangeCueNumber" CanExecute="CanExecuteWithOnlyOneSelected" />
                    <CommandBinding Command="q:Commands.BumpStatus" Executed="ExecuteBumpStatus" CanExecute="CanExecuteWithAtLeastOneSelected" />
                    <CommandBinding Command="q:Commands.MultiChannelSettings" Executed="ExecuteMultiChannelSettings" CanExecute="CanExecuteMultiChannelSettings" />
                    <CommandBinding Command="q:Commands.DeleteCue" CanExecute="CanExecuteWithAtLeastOneSelected" Executed="ExecuteDeleteCue" />
                </ContextMenu.CommandBindings>
				<MenuItem Header="Copy" Command="ApplicationCommands.Copy" CommandParameter="{Binding Mode=OneWay}" />
				<MenuItem Header="Paste" Command="ApplicationCommands.Paste" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Paste.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator />
				<MenuItem Header="Change Number" Command="q:Commands.ChangeCueNumber" CommandParameter="{Binding Mode=OneWay}" >
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Number.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Header="Bump Status" Command="q:Commands.BumpStatus" CommandParameter="{Binding Mode=OneWay}" >
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/BumpStatus.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator />
				<MenuItem Header="MultiChannel Settings" Command="q:Commands.MultiChannelSettings" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/MultiChannel.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator />
				<MenuItem Header="Delete Cue" Command="q:Commands.DeleteCue" CommandParameter="{Binding}" >
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Trash.png" />
					</MenuItem.Icon>
				</MenuItem>
			</ContextMenu>

			<DataTemplate x:Key="AudioCueDataTemplate">
				<Border x:Name="Border" BorderThickness="0" Padding="1,1,1,0" BorderBrush="Transparent" ContextMenu="{StaticResource AudioCueContextMenu}" Background="{Binding Status, Converter={StaticResource CueStatusToColorConverter}}">
                    <Border.CommandBindings>
                        <CommandBinding Command="q:Commands.LoopCue" Executed="ExecuteLoopCue" CanExecute="CanExecuteEditing" />
                        <CommandBinding Command="q:Commands.CenterPan" Executed="ExecuteCenterPan" CanExecute="CanExecuteEditing" />
                        <CommandBinding Command="q:Commands.LoadAudioFile" Executed="ExecuteLoadAudioFile" CanExecute="CanExecuteEditing" />
                        <CommandBinding Command="q:Commands.HardStop" Executed="ExecuteHardStop" />
                        <CommandBinding Command="MediaCommands.Play" Executed="ExecutePlay" />
                        <CommandBinding Command="MediaCommands.Pause" Executed="ExecutePause" />
                        <CommandBinding Command="MediaCommands.Stop" Executed="ExecuteStop" />
                    </Border.CommandBindings>
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="{Binding SettingsAccess.Column0Width,  ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition 	Width="{Binding SettingsAccess.Column1Width,  ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition Width="{Binding SettingsAccess.Column2Width,  ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition 	Width="{Binding SettingsAccess.Column3Width,  ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition Width="{Binding SettingsAccess.Column4Width,  ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition Width="{Binding SettingsAccess.Column5Width,  ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition 	Width="{Binding SettingsAccess.Column6Width,  ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition 	Width="{Binding SettingsAccess.Column7Width,  ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition 	Width="{Binding SettingsAccess.Column8Width,  ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition 		Width="{Binding SettingsAccess.Column9Width,  ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition Width="{Binding SettingsAccess.Column12Width, ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition 		Width="{Binding SettingsAccess.Column10Width, ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition  />
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>

						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="0"  Text="Cue #" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="1"  Text="Status" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="2"  Text="Notes" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="3"  Text="Transport-Action" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="4"  Text="Audio Transport" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="5"  Text="Delay" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="6"  Text="Fade-In" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="7"  Text="Fade-Out" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="8"  Text="Volume" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="9"  Text="Pan" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="10"  Text="Start Time" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="11" Text="Audio File" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />

						<GridSplitter Grid.Column="0" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False" />
						<GridSplitter Grid.Column="1" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="2" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="3" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="4" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="5" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="6" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="7" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="8" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="9" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="10" Width="3" Margin="2,0,0,0" Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="11" Width="3" Margin="2,0,0,0" Background="White" ResizeDirection="Columns" ShowsPreview="False"/>

						<!--This is the Main Content Area-->
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" Margin="5,0,5,5" Text="{Binding FullNumber, Mode=OneWay}" />
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" Margin="5,0,5,5" Text="{Binding Status, Mode=OneWay}" />
						<TextBox   Grid.Column="2" Grid.Row="1" VerticalAlignment="Center" Margin="5,0,5,5" Text="{Binding Description, Mode=TwoWay}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" MaxLines="3" TextWrapping="Wrap" />
						<!--<ComboBox  Grid.Column="3" Grid.Row="1" VerticalAlignment="Center" Margin="5,0,5,5" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" ItemsSource="{Binding Source={StaticResource TransportActionValues}}" ItemTemplate="{StaticResource TransportActionTemplate}" SelectedItem="{Binding TransportAction, Mode=TwoWay}" MinWidth="80" MaxWidth="100"  IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}"/>-->
						<ComboBox  Grid.Column="3" Grid.Row="1" Margin="5" VerticalAlignment="Center" SelectedIndex="{Binding TransportActionIndex, Mode=TwoWay}" MinWidth="80" MaxWidth="150"  IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}">
							<ComboBoxItem Content="Nothing" />
							<ComboBoxItem Content="Delayed Advance" />
							<ComboBoxItem Content="Immediate Advance" />
							<ComboBoxItem Content="Advance on End" />
						</ComboBox>
						<StackPanel Grid.Column="4" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,0,5,5" Orientation="Horizontal">
							<Button Margin="4,0" Command="MediaCommands.Play" CommandParameter="{Binding Mode=OneWay}" Width="18" Height="18">
								<Image Source="/Q2Q;component/Images/16x16/Play.png" />
							</Button>
							<Button Margin="4,0" Command="MediaCommands.Pause" CommandParameter="{Binding Mode=OneWay}" Width="18" Height="18">
								<Image Source="/Q2Q;component/Images/16x16/Pause.png" />
							</Button>
							<Button Margin="4,0" Width="18" Height="18">
								<Button.InputBindings>
									<MouseBinding Gesture="LeftDoubleClick" Command="q:Commands.HardStop" CommandParameter="{Binding Mode=OneWay}" />
									<MouseBinding Gesture="LeftClick" Command="MediaCommands.Stop" CommandParameter="{Binding Mode=OneWay}" />
								</Button.InputBindings>
								<Image Source="/Q2Q;component/Images/16x16/Stop.png" />
							</Button>
							<Button Margin="4,0" Command="q:Commands.LoopCue" CommandParameter="{Binding Mode=OneWay}" Width="18" Height="18">
								<Image Source="{Binding EnableLooping, Converter={StaticResource BooleanToLoopImageConverter}, Mode=OneWay}" />
							</Button>
						</StackPanel>
						<ctrl:NumericalIncrementer Grid.Row="1" Grid.Column="5" MaxHeight="18" VerticalAlignment="Center" Margin="5,0,5,5" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IncrementAmount="1" Value="{Binding ActionDelay, Mode=TwoWay}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" MinValue="0.5" />
						<ctrl:NumericalIncrementer Grid.Row="1" Grid.Column="6" MaxHeight="18" VerticalAlignment="Center" Margin="5,0,5,5" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IncrementAmount="1" MaxValue="600" Value="{Binding FadeInDuration, Mode=TwoWay}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" />
						<ctrl:NumericalIncrementer Grid.Row="1" Grid.Column="7" MaxHeight="18" VerticalAlignment="Center" Margin="5,0,5,5" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IncrementAmount="1" MaxValue="600" Value="{Binding FadeOutDuration, Mode=TwoWay}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" />
						<ctrl:NumericalIncrementer Grid.Row="1" Grid.Column="8" MaxHeight="18" VerticalAlignment="Center" Margin="5,0,5,5" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IncrementAmount="0.05" MaxValue="1" MinValue="0.01" Value="{Binding Volume, Mode=TwoWay}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" />


						<Grid Grid.Column="9" Grid.Row="1" MinWidth="80" VerticalAlignment="Center" Margin="5,0,5,5">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="Auto" />
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>
							<Slider IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" Grid.Row="0" Grid.ColumnSpan="3" ToolTip="Middle-Click to Pan Center" MinWidth="80" VerticalAlignment="Center" LargeChange="0.1" Maximum="1" Minimum="-1" Value="{Binding Pan}">
								<Slider.Style>
									<Style BasedOn="{StaticResource PanStyle}" TargetType="{x:Type Slider}">
										<Style.Triggers>
											<Trigger Property="IsEnabled" Value="False">
												<Setter Property="Value" Value="{Binding Player.Pan}" />
											</Trigger>
										</Style.Triggers>
									</Style>
								</Slider.Style>
								<Slider.InputBindings>
									<MouseBinding Gesture="MiddleClick" Command="q:Commands.CenterPan" CommandParameter="{Binding Mode=OneWay}" />
								</Slider.InputBindings>
							</Slider>
							<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Row="1" Grid.Column="0" Text="Left" />
							<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Row="1" Grid.Column="1" Text="{Binding Pan, StringFormat=\{0:F2\}}" />
							<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Row="1" Grid.Column="2" Text="Right" />
						</Grid>
						<ctrl:TimeSpanIncrementer Grid.Column="10" Grid.Row="1" Value="{Binding StartTime, Mode=TwoWay}" MaxValue="{Binding TotalTime, Mode=OneWay}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" />
						<Grid Grid.Column="11" Grid.Row="1" VerticalAlignment="Center"  Margin="5,0,5,5">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>
							<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="0" Text="{Binding ShortFileName}" HorizontalAlignment="Left"/>
							<Button Grid.Column="1" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" Content=". . ." Command="q:Commands.LoadAudioFile" CommandParameter="{Binding Mode=OneWay}" Margin="8,0" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" Focusable="False" />
						</Grid>
						<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="12" Grid.Row="0" Grid.RowSpan="2" VerticalAlignment="Center" HorizontalAlignment="Left" Text="{Binding CurrentTime, IsAsync=True}" />
						<Border x:Name="SepBorder" Grid.Row="0" Grid.RowSpan="2" Grid.ColumnSpan="13" BorderBrush="{DynamicResource WindowColorBrush}" BorderThickness="0,0,0,1" />

                        <!--<Border Grid.Row="2" Grid.ColumnSpan="13">
                            <ctrl:WaveFormControl AudioFile="{Binding FileName}" HorizontalAlignment="Stretch" />
                        </Border>-->
                        
					</Grid>
				</Border>
				<DataTemplate.Triggers>
					<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=ListViewItem}}" Value="True" >
						<Setter Property="BorderBrush" Value="{DynamicResource QOrange}" TargetName="Border" />
						<Setter Property="BorderThickness" Value="1" TargetName="Border" />
						<Setter Property="Padding" Value="0" TargetName="Border" />
						<Setter Property="BorderThickness" Value="0" TargetName="SepBorder" />
					</DataTrigger>
				</DataTemplate.Triggers>
			</DataTemplate>

			<ContextMenu x:Key="StackCueContextMenu">
                <ContextMenu.CommandBindings>
                    <CommandBinding Command="ApplicationCommands.Copy" Executed="ExecuteCopyCue" CanExecute="CanExecuteWithOnlyOneSelected" />
                    <CommandBinding Command="ApplicationCommands.Paste" Executed="ExecutePasteCue" CanExecute="CanExecuteWithAtLeastOneSelectedPaste" />
                    <CommandBinding Command="q:Commands.ChangeCueNumber" Executed="ExecuteChangeCueNumber" CanExecute="CanExecuteWithOnlyOneSelected" />
                    <CommandBinding Command="q:Commands.BumpStatus" Executed="ExecuteBumpStatus" CanExecute="CanExecuteWithAtLeastOneSelected" />
                    <CommandBinding Command="q:Commands.DeleteCue" CanExecute="CanExecuteWithAtLeastOneSelected" Executed="ExecuteDeleteCue" />

                    <CommandBinding Command="q:Commands.AddAudioCue" Executed="ExecuteAddAudioCue" CanExecute="CanExecuteEditing" />
                    <CommandBinding Command="q:Commands.BulkAddAudioCues" Executed="ExecuteBulkAddAudioCues" CanExecute="CanExecuteEditing" />
                    <CommandBinding Command="q:Commands.AddTransportCue" Executed="ExecuteAddTransportCue" CanExecute="CanExecuteEditing" />
                    <CommandBinding Command="q:Commands.AddStackCue" Executed="ExecuteAddStackCue" CanExecute="CanExecuteEditing" />

                </ContextMenu.CommandBindings>
				<MenuItem Header="Copy" Command="ApplicationCommands.Copy"  CommandParameter="{Binding Mode=OneWay}"/>
				<MenuItem Header="Paste" Command="ApplicationCommands.Paste" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Paste.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator />
				<MenuItem Header="Change Number" Command="q:Commands.ChangeCueNumber" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Number.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Header="Bump Status" Command="q:Commands.BumpStatus" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/BumpStatus.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator />
				<MenuItem Header="Delete Cue" Command="q:Commands.DeleteCue" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Trash.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator />
				<MenuItem Command="q:Commands.AddAudioCue" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Sound.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Command="q:Commands.BulkAddAudioCues" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/BulkAudio.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Command="q:Commands.AddTransportCue" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Stop.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Command="q:Commands.AddStackCue" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Stack.png" />
					</MenuItem.Icon>
				</MenuItem>
			</ContextMenu>

			<DataTemplate x:Key="StackCueDataTemplate" DataType="cues:Stack">
				<Border x:Name="OuterBorder" ContextMenu="{StaticResource StackCueContextMenu}" BorderBrush="Transparent" BorderThickness="0" Padding="1,1,1,0" Background="{Binding Status, Converter={StaticResource CueStatusToColorConverter}}">
                    <Border.CommandBindings>
                        <CommandBinding Command="q:Commands.ToggleStackCueList" Executed="ExecuteToggleStackCueList" />
                    </Border.CommandBindings>
					<Grid>
						<Grid.Resources>
							<cueHelp:CueTypeTemplateSelector x:Key="TypeSelect" />
						</Grid.Resources>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="Auto" />
						</Grid.RowDefinitions>
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition 	Width="{Binding SettingsAccess.Column0Width, ElementName=CueListControl, Mode=TwoWay}"/>
								<ColumnDefinition 	Width="{Binding SettingsAccess.Column1Width, ElementName=CueListControl, Mode=TwoWay}"/>
								<ColumnDefinition 	Width="{Binding SettingsAccess.Column2Width, ElementName=CueListControl, Mode=TwoWay}"/>
								<ColumnDefinition 	Width="{Binding SettingsAccess.Column3Width, ElementName=CueListControl, Mode=TwoWay}"/>
								<ColumnDefinition 	Width="{Binding SettingsAccess.Column11Width, ElementName=CueListControl, Mode=TwoWay}"/>
								<ColumnDefinition 	Width="{Binding SettingsAccess.Column5Width,  ElementName=CueListControl, Mode=TwoWay}"/>
								<ColumnDefinition   Width="Auto" />
								<ColumnDefinition   Width="*" />
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="Auto" />
							</Grid.RowDefinitions>
							<!--<Border x:Name="Border" Grid.Row="0" Grid.RowSpan="2" Grid.ColumnSpan="8" BorderThickness="0,0,0,1" BorderBrush="{DynamicResource WindowColorBrush}" Background="{Binding Status, Converter={StaticResource CueStatusToColorConverter}}">
							</Border>-->
							<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="0" Text="Cue #" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
							<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="1" Text="Status" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
							<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="2" Text="Notes" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
							<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="3" Text="Transport-Action" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
							<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="4" Text="Transport" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
							<TextBlock Style="{StaticResource TextBlockStyle}" Grid.Column="5" Text="Delay" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />

							<GridSplitter Grid.Column="0" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False" />
							<GridSplitter Grid.Column="1" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
							<GridSplitter Grid.Column="2" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
							<GridSplitter Grid.Column="3" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
							<GridSplitter Grid.Column="4" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
							<GridSplitter Grid.Column="5" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>


							<TextBlock Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" Margin="5,0,5,5" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Stretch" TextAlignment="Center" Text="{Binding FullNumber}" />
							<TextBlock Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" Margin="5,0,5,5" Text="{Binding Status}" Style="{StaticResource TextBlockStyle}" />
							<TextBox   Grid.Column="2" Grid.Row="1" VerticalAlignment="Center" Margin="5,0,5,5" Text="{Binding Description}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" MaxLines="3" TextWrapping="Wrap" />
							<ComboBox  Grid.Column="3" Grid.Row="1" VerticalAlignment="Center" Margin="5" SelectedIndex="{Binding TransportActionIndex, Mode=TwoWay}" MinWidth="80" MaxWidth="150"  IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}">
								<ComboBoxItem Content="Nothing" />
								<ComboBoxItem Content="Delayed Advance" />
								<ComboBoxItem Content="Immediate Advance" />
							</ComboBox>

							<StackPanel Grid.Column="4" Grid.Row="1" VerticalAlignment="Center" Margin="5,0,5,5" Orientation="Horizontal">
								<Button Margin="4,0" Command="MediaCommands.Play" CommandParameter="{Binding Mode=OneWay}" Width="18" Height="18">
									<Image Source="/Q2Q;component/Images/16x16/Play.png" />
								</Button>
								<Button Margin="4,0" Command="MediaCommands.Pause" CommandParameter="{Binding Mode=OneWay}" Width="18" Height="18">
									<Image Source="/Q2Q;component/Images/16x16/Pause.png" />
								</Button>
								<Button Margin="4,0" Width="18" Height="18">
									<Button.InputBindings>
										<MouseBinding Gesture="LeftClick" Command="MediaCommands.Stop" CommandParameter="{Binding Mode=OneWay}" />
										<MouseBinding Gesture="LeftDoubleClick" Command="q:Commands.HardStop" CommandParameter="{Binding Mode=OneWay}" />
									</Button.InputBindings>
									<Image Source="/Q2Q;component/Images/16x16/Stop.png" />
								</Button>
							</StackPanel>

							<ctrl:NumericalIncrementer Grid.Row="1" Grid.Column="5" MaxHeight="18" VerticalAlignment="Center" Margin="5,0,5,5" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IncrementAmount="1" Value="{Binding ActionDelay, Mode=TwoWay}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" MinValue="0.5" />

							<Button Margin="5,0,5,5" Padding="6,4" HorizontalAlignment="Left" Grid.Column="6" Grid.Row="1" Command="q:Commands.ToggleStackCueList" CommandParameter="{Binding}" Content="Show Cue List" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" />
						</Grid>

						<ctrl:CueList Margin="0" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="1" x:Name="CueListStack" Tag="{Binding FullNumber}" ParentCueNumber="{Binding Number}" Visibility="Collapsed" CueListing="{Binding CueList}" Padding="5,3,3,5" BorderThickness="0" IsEditingEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" />
						<Border x:Name="SepBorder" Grid.Row="0" Grid.RowSpan="2" Grid.ColumnSpan="7" BorderBrush="{DynamicResource WindowColorBrush}" BorderThickness="0,0,0,1" />

					</Grid>

				</Border>
				<DataTemplate.Triggers>
					<Trigger Property="Visibility" Value="Visible" SourceName="CueListStack">
						<Setter Property="BorderThickness" Value="1" TargetName="OuterBorder" />
						<Setter Property="BorderBrush" Value="{DynamicResource TextForeground}" TargetName="OuterBorder"/>
						<Setter Property="BorderThickness" Value="0" TargetName="SepBorder" />
					</Trigger>
					<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=ListViewItem}}" Value="True" >
						<Setter Property="BorderThickness" Value="1" TargetName="OuterBorder" />
						<Setter Property="BorderBrush" Value="{DynamicResource QOrange}" TargetName="OuterBorder" />
						<Setter Property="Padding" Value="0" TargetName="OuterBorder" />
						<Setter Property="BorderThickness" Value="0" TargetName="SepBorder" />
					</DataTrigger>
				</DataTemplate.Triggers>
			</DataTemplate>

			<ContextMenu x:Key="TransportCueContextMenu">
                <ContextMenu.CommandBindings>
                    <CommandBinding Command="ApplicationCommands.Copy" Executed="ExecuteCopyCue" CanExecute="CanExecuteWithOnlyOneSelected" />
                    <CommandBinding Command="ApplicationCommands.Paste" Executed="ExecutePasteCue" CanExecute="CanExecuteWithAtLeastOneSelectedPaste" />
                    <CommandBinding Command="q:Commands.ChangeCueNumber" Executed="ExecuteChangeCueNumber" CanExecute="CanExecuteWithOnlyOneSelected" />
                    <CommandBinding Command="q:Commands.BumpStatus" Executed="ExecuteBumpStatus" CanExecute="CanExecuteWithAtLeastOneSelected" />
                    <CommandBinding Command="q:Commands.DeleteCue" CanExecute="CanExecuteWithAtLeastOneSelected" Executed="ExecuteDeleteCue" />
                </ContextMenu.CommandBindings>
				<MenuItem Header="Copy" Command="ApplicationCommands.Copy" CommandParameter="{Binding Mode=OneWay}" />
				<MenuItem Header="Paste" Command="ApplicationCommands.Paste" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Paste.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator />
				<MenuItem Header="Change Number" Command="q:Commands.ChangeCueNumber" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Number.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Header="Bump Status" Command="q:Commands.BumpStatus" CommandParameter="{Binding Mode=OneWay}">
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/BumpStatus.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator />
				<MenuItem Header="Delete Cue" Command="q:Commands.DeleteCue" CommandParameter="{Binding Mode=OneWay}" >
					<MenuItem.Icon>
						<Image Source="/Q2Q;component/Images/16x16/Trash.png" />
					</MenuItem.Icon>
				</MenuItem>
			</ContextMenu>

			<DataTemplate x:Key="TransportCueDataTemplate">
				<DataTemplate.Resources>
					<Style BasedOn="{StaticResource TextBlockStyle}" TargetType="TextBlock" />
				</DataTemplate.Resources>
				<Border x:Name="Border" BorderThickness="0" Padding="1,1,1,0" BorderBrush="Transparent" ContextMenu="{StaticResource TransportCueContextMenu}" Background="{Binding Status, Converter={StaticResource CueStatusToColorConverter}}">
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="{Binding SettingsAccess.Column0Width, ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition Width="{Binding SettingsAccess.Column1Width, ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition Width="{Binding SettingsAccess.Column2Width, ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition Width="{Binding SettingsAccess.Column3Width, ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition Width="{Binding SettingsAccess.Column11Width, ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="{Binding SettingsAccess.Column5Width,  ElementName=CueListControl, Mode=TwoWay}" />
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="Auto" />
						</Grid.RowDefinitions>

						<TextBlock Grid.Column="0" Text="Cue #" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Grid.Column="1" Text="Status" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Grid.Column="2" Text="Notes" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Grid.Column="3" Text="Transport-Action" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Grid.Column="4" Text="Delay" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Grid.Column="5" Text="Cue Action" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" />
						<TextBlock Grid.Column="6" Text="Target Cue" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" Visibility="{Binding Action, Converter={StaticResource TransportCueActionToVisibilityConverter}}" />
						<TextBlock Grid.Column="7" Text="Pan Value" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" Visibility="{Binding Action, Converter={StaticResource TransportCueActionToVisibilityConverter}, ConverterParameter=AutoPan}" />
						<TextBlock Grid.Column="8" Text="Pan Duration" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" Visibility="{Binding Action, Converter={StaticResource TransportCueActionToVisibilityConverter}, ConverterParameter=AutoPan}" />
						<TextBlock Grid.Column="7" Text="Fade Value" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" Visibility="{Binding Action, Converter={StaticResource TransportCueActionToVisibilityConverter}, ConverterParameter=AutoFade}" />
						<TextBlock Grid.Column="8" Text="Fade Duration" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Stretch" Visibility="{Binding Action, Converter={StaticResource TransportCueActionToVisibilityConverter}, ConverterParameter=AutoFade}" />

						<GridSplitter Grid.Column="0" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False" />
						<GridSplitter Grid.Column="1" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="2" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>
						<GridSplitter Grid.Column="3" Width="3" Margin="2,0,0,0"  Background="White" ResizeDirection="Columns" ShowsPreview="False"/>

						<TextBlock Grid.Column="0" Grid.Row="1" Margin="5" VerticalAlignment="Center" Text="{Binding FullNumber}" />
						<TextBlock Grid.Column="1" Grid.Row="1" Margin="5" VerticalAlignment="Center" Text="{Binding Status}" />
						<TextBox   Grid.Column="2" Grid.Row="1" Margin="5" VerticalAlignment="Center" Text="{Binding Description}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" MaxLines="3" TextWrapping="Wrap" />
						<!--<ComboBox  Grid.Column="3" Grid.Row="1" Margin="5" VerticalAlignment="Center" ItemsSource="{Binding Source={StaticResource TransportActionValues}}" ItemTemplate="{StaticResource TransportActionTemplate}" SelectedItem="{Binding TransportAction, Mode=TwoWay}" MinWidth="80" MaxWidth="100"  IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}"/>-->
						<ComboBox  Grid.Column="3" Grid.Row="1" Margin="5" VerticalAlignment="Center" SelectedIndex="{Binding TransportActionIndex, Mode=TwoWay}" MinWidth="80" MaxWidth="150"  IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}">
							<ComboBoxItem Content="Nothing" />
							<ComboBoxItem Content="Delayed Advance" />
							<ComboBoxItem Content="Immediate Advance" />
							<ComboBoxItem Content="Advance on End" />
						</ComboBox>
						<ctrl:NumericalIncrementer Grid.Row="1" Grid.Column="4" MaxHeight="18" VerticalAlignment="Center" Margin="5,0,5,5" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IncrementAmount="1" Value="{Binding ActionDelay, Mode=TwoWay}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" MinValue="0.1" />
						<ComboBox x:Name="CueAction" Grid.Column="5" Grid.Row="1" Margin="5" VerticalAlignment="Center" SelectedIndex="{Binding Action, Converter={StaticResource TransportCueActionToSelectionConverter}}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}">
							<ComboBoxItem Content="Stop Specific Cue" />
							<ComboBoxItem Content="Stop All Cues" />
							<ComboBoxItem Content="Start Cue" />
							<ComboBoxItem Content="Bump Cue Status" />
							<ComboBoxItem Content="AutoPan" />
							<ComboBoxItem Content="AutoFade" />
						</ComboBox>
						<ctrl:NumericalIncrementer VerticalAlignment="Center" Grid.Column="6" Grid.Row="1" Margin="5" MaxHeight="18" Value="{Binding TargetCue, Mode=TwoWay}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" Visibility="{Binding Action, Converter={StaticResource TransportCueActionToVisibilityConverter}, ConverterParameter={x:Null}}" IncrementAmount="1" MinValue="0.01" />
						<ctrl:NumericalIncrementer VerticalAlignment="Center" Grid.Column="7" Grid.Row="1" Margin="5" MaxHeight="18" Value="{Binding TargetPan, Mode=TwoWay}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" Visibility="{Binding Action, Converter={StaticResource TransportCueActionToVisibilityConverter}, ConverterParameter=AutoPan}" IncrementAmount="0.1" MaxValue="1" MinValue="-1" />
						<ctrl:NumericalIncrementer VerticalAlignment="Center" Grid.Column="8" Grid.Row="1" Margin="5" MaxHeight="18" Value="{Binding PanDuration, Mode=TwoWay}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" Visibility="{Binding Action, Converter={StaticResource TransportCueActionToVisibilityConverter}, ConverterParameter=AutoPan}" IncrementAmount="1" MinValue="0" />
						<ctrl:NumericalIncrementer VerticalAlignment="Center" Grid.Column="7" Grid.Row="1" Margin="5" MaxHeight="18" Value="{Binding TargetFade, Mode=TwoWay}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" Visibility="{Binding Action, Converter={StaticResource TransportCueActionToVisibilityConverter}, ConverterParameter=AutoFade}" IncrementAmount="0.1" MaxValue="1" MinValue="0" />
						<ctrl:NumericalIncrementer VerticalAlignment="Center" Grid.Column="8" Grid.Row="1" Margin="5" MaxHeight="18" Value="{Binding FadeDuration, Mode=TwoWay}" FontSize="{Binding DefaultCueFontSize, ElementName=CueListControl}" IsEnabled="{Binding IsEditingEnabled, ElementName=CueListControl}" Visibility="{Binding Action, Converter={StaticResource TransportCueActionToVisibilityConverter}, ConverterParameter=AutoFade}" IncrementAmount="1" MinValue="0" />
						<Border x:Name="SepBorder" Grid.Row="0" Grid.RowSpan="2" Grid.ColumnSpan="11" BorderBrush="{DynamicResource WindowColorBrush}" BorderThickness="0,0,0,1" />
					</Grid>
				</Border>
				<DataTemplate.Triggers>
					<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=ListViewItem}}" Value="True" >
						<Setter Property="BorderBrush" Value="{DynamicResource QOrange}" TargetName="Border" />
						<Setter Property="BorderThickness" Value="1" TargetName="Border" />
						<Setter Property="Padding" Value="0" TargetName="Border" />
						<Setter Property="BorderThickness" Value="0" TargetName="SepBorder" />
					</DataTrigger>
				</DataTemplate.Triggers>
			</DataTemplate>



			<Style TargetType="{x:Type ListViewItem}">
				<Setter Property="FocusVisualStyle" Value="{x:Null}" />
				<Setter Property="Margin" Value="1" />
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="ListViewItem">
							<ContentPresenter />
						</ControlTemplate>
					</Setter.Value>
				</Setter>
                <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=OneWayToSource}" />
            </Style>
		</ListView.Resources>
	</ListView>
</UserControl>
 